package org.dxy.domain.model.aggregate.factory;

import org.dxy.domain.command.process.CreateProcessCommand;
import org.dxy.domain.model.aggregate.Process;

/**
 * 工序工厂接口
 */
public interface ProcessFactory {
    
    /**
     * 创建工序聚合根
     * @param processId 工序ID
     * @param command 创建工序命令
     * @return 工序聚合根
     */
    Process create(Long processId, CreateProcessCommand command);
}